No mail for root message [closed]
Posted
by
Werulz
on Server Fault
See other posts from Server Fault
or by Werulz
Published on 2012-08-12T08:00:36Z
Indexed on
2012/11/12
17:04 UTC
Read the original article
Hit count: 165
I want to receive email when people login to my server via ssh (as a security measure), however, when I login, I get:
No mail for root
Email is [email protected]
Does it need Postfix to work? I already install it on server but i haven't configured it
Can you give me a tutorial to configure Postfix in case it needed? Will email be sent even if my domain hasn't been propagated yet?
I added this in .bash_profile
echo 'ALERT - Root Shell Access on:' `date` `who` |
mail -s "Alert: Root Access from `who | awk '{print $6}'`" [email protected]
© Server Fault or respective owner